package com.biscuit.page.basicservice.model.entities.mysql;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("sys_ai_chat_dialogue")
public class SysAiChatDialogue extends BaseEntity {

    @TableField(value = "session_id")
    private Long sessionId;

    @TableField(value = "question")
    private String question;

    @TableField(value = "result")
    private String result;

    @TableField(value = "is_abort")
    private Integer isAbort;

    @TableField(value = "abort_result")
    private String abortResult;

    @TableField(value = "is_response")
    private Integer isResponse;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "response_time")
    private LocalDateTime responseTime;

    @TableField(value = "is_rebuild")
    private Integer isRebuild;

}